package org.srtc.infopub.infoProcessor;

import java.io.File;

import org.jconfig.Configuration;
import org.jconfig.ConfigurationManager;
import org.jconfig.handler.XMLFileHandler;

public class gzmxxProcessor
	{

		private String info_define_configure = "gzmxx.xml";

		protected void readConfigure()
			{
				ConfigurationManager cm = ConfigurationManager.getInstance();

				File file = new File("info_define/"+info_define_configure);
				XMLFileHandler handler = new XMLFileHandler();
				handler.setFile(file);
				try
					{
						System.out.println("trying to load file");
						cm.load(handler, "gzmxx");
						System.out.println("file successfully processed");
						Configuration config = cm.getConfiguration("gzmxx");
						
						

					} catch (Exception e)
					{
						e.printStackTrace();
					}
			}

		/**
		 * @param args
		 */
		public static void main(String[] args)
			{
				new gzmxxProcessor().readConfigure();
			}

	}
